﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace MyUtility
{
    public partial class FavSitePage : PhoneApplicationPage
    {
        public FavSitePage()
        {
            InitializeComponent();
        }
		
		
        private void bnt01_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
        	myBrowser.Navigate(new Uri("http://www.bing.com"));
		}

        private void bnt03_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			myBrowser.NavigateToString("<html><body><h1>Hello World</h1></body></html>");
        }
		//using Microsoft.Phone.Tasks;
		WebBrowserTask webTask = new WebBrowserTask();
        private void bnt02_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			webTask.URL = "http://www.google.com";
			webTask.Show();
        }
    }
}
